/**
 * Copyright (c) 2010-2011 Pierre Labatut
 *
 * This file is part of Space-Chronicles project.
 *
 * Space-Chronicles is free software: you can redistribute it and/or modify it
 * under the terms of its license which may be found in the accompanying
 * LICENSE file or <http://code.google.com/p/space-chronicles/>.
 */

package space.input;

import java.util.logging.Level;
import java.util.logging.Logger;
import net.java.games.input.ControllerEnvironment;
import net.java.games.input.Version;
import space.game.splash.InitializationTask;

/**
 *
 * @author Pierre
 */
public class InputInitializationTask implements InitializationTask {

    static private final Logger logger = Logger.getLogger(
            InputInitializationTask.class.getName());

    public String title() {
        return "Initialize Game Controlers";
    }

    public void run() {
        /**
         * Startup jinput and provide version info
         */
        logger.info("Initialize jinput");
        ControllerEnvironment.getDefaultEnvironment().getControllers();
        logger.log(Level.INFO, "jinput version {0}", Version.getVersion());
    }
}
